package sdfi.lee.Entity;

import sdfi.lee.DAO.YiqiDAO;
import sdfi.lee.Entity.base.BaseYiqishare;



public class Yiqishare extends BaseYiqishare {
	private static final long serialVersionUID = 1L;
	private String tip;
	public String getTip()
	{
		return this.tip;
	}
	public void setTip(String tip)
	{
		this.tip=tip;
	}

/*[CONSTRUCTOR MARKER BEGIN]*/
	public Yiqishare () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public Yiqishare (java.lang.Integer id) {
		super(id);
	}
	public Yiqishare(Integer id,String yiqiname,String userfor)
	{
		this(id);
		this.setYiqiname(yiqiname);
		this.setUserfor(userfor);
	}
	public String execute()
	{
		String falg= new YiqiDAO().addYiqi(this);
		if("success".equals(falg)) tip="添加成功！";
		else tip="";
		return falg;
	}

/*[CONSTRUCTOR MARKER END]*/


}